# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'IpToCountry'
        db.create_table('iptocountry_iptocountry', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('IP_FROM', self.gf('django.db.models.fields.PositiveIntegerField')()),
            ('IP_TO', self.gf('django.db.models.fields.PositiveIntegerField')()),
            ('COUNTRY_CODE2', self.gf('django.db.models.fields.CharField')(max_length=2)),
            ('COUNTRY_CODE3', self.gf('django.db.models.fields.CharField')(max_length=3)),
            ('COUNTRY_NAME', self.gf('django.db.models.fields.CharField')(max_length=50)),
        ))
        db.send_create_signal('iptocountry', ['IpToCountry'])


    def backwards(self, orm):
        
        # Deleting model 'IpToCountry'
        db.delete_table('iptocountry_iptocountry')


    models = {
        'iptocountry.iptocountry': {
            'COUNTRY_CODE2': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
            'COUNTRY_CODE3': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
            'COUNTRY_NAME': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
            'IP_FROM': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'IP_TO': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'Meta': {'object_name': 'IpToCountry'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        }
    }

    complete_apps = ['iptocountry']
